package com.sservice.commonBusiness.mapper;

import com.sservice.commonBusiness.e.Category;
import com.sservice.commonBusiness.vo.CategoryVo;

import java.util.List;

public interface CategoryMapper {
    List<CategoryVo> queryByPage(CategoryVo record); // 自定义分页
    int countByPage(CategoryVo record); // 自定义分页

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> migrationData(Category data);

    /**
     * 纯数据统计
     *
     * @param data
     * @return
     */
    Integer countPlainByPage(CategoryVo data);

    /**
     * 纯数据查询
     *
     * @param data
     * @return
     */
    List<CategoryVo> queryPlainByPage(CategoryVo data);

    /**
     * 按字段查询
     *
     * @param record
     * @return
     */
    Category selectBy(Category record);
}